import "./react-router/matchPath";
import "./history/index";

import { BrowserRouter as Router, Route, Switch } from "react-router-dom";

function Abc() {
  return <h1>hello world</h1>
}

function Bcd() {
  return <h2>hello world</h2>
}

function App() {
  return (
    <Router>
      <div className="App">
        <header className="App-header">
          <Route path="/abc" component={Abc} />
          <Route path="/bcd" component={Bcd} />
          <Switch>
            <Route path="/abc" component={Abc} />
            <Route path="/bcd" component={Bcd} />
          </Switch>
        </header>
      </div>
    </Router>
  );
}

export default App;
